package com.px.project.module.ht.task;

import lombok.RequiredArgsConstructor;
import com.px.common.config.task.BiTask;
import com.px.project.module.ht.service.LocomotiveDutyService;
import org.springframework.stereotype.Component;

/**
 * 机车任务
 *
 * @author 品讯科技
 * @date 2024-08
 */
@Component("htLocomotiveTask")
@RequiredArgsConstructor
public class LocomotiveTask implements BiTask {

    private final LocomotiveDutyService locomotiveDutyService;

    @Override
    public void run() throws Exception{
        locomotiveDutyService.generatorDuty();
    }
}
